<%@page import="com.dein.music.model.Music"%>
<%@page import="com.dein.broadcast.model.Broadcast"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<Broadcast> broadcastList = (List<Broadcast>) request
			.getAttribute("broadcastList");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'admin_broadcast.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/pages/admin.css">


</head>

<body>

	<div class="layer">

		<div class="logo">
			<span id="dein">Dein.fm</span> <span id="welcome">欢迎，XXX</span>
			<div class="exitBtn"></div>
		</div>

		<div class="manu">
			<a href="page/admin_index" style="color:pink"><div class="home">首页</div></a>
			<div class="guideBtn">管理我的电台</div>
			<hr>
			<div class="Box">
				<div class="musicBox">
					<p>我管理的电台</p>
					<br />
					<form>
						<%
							for (int i = 0; i < broadcastList.size(); i++) {
								Broadcast broadcast = broadcastList.get(i);
						%>
						<li><%=i + 1%>, <%=broadcast.getBroadcastName()%><button>
								<a
									href="broadcast/getBroadcastMusicList?id=<%=broadcast.getBroadcastId()%>&name=<%=broadcast.getBroadcastName()%>"
									style="color:white">详情</a>
							</button></li> <br />
						<%
							}
						%>
						<br /> <br />
					</form>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/frame/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="js/admin.js"></script>
</body>
</html>
